/*
 * @Author: gxn
 * @Date: 2020-09-03 23:25:54
 * @LastEditors: gxn
 * @LastEditTime: 2021-02-07 17:13:59
 * @Description: file
 */
import { admin } from '../servicePath'
export default ({ service, request, serviceForMock, requestForMock, mock, faker, tools }) => ({
  admin_equipmentmodel_add (data) {
    return request({
      url: `${admin}/admin/equipmentmodel/add`,
      method: 'POST',
      data
    })
  },
  admin_equipmentmodel_delete (data) {
    return request({
      url: `${admin}/admin/equipmentmodel/delete`,
      method: 'POST',
      data
    })
  },
  admin_equipmentmodel_get (params) {
    return request({
      url: `${admin}/admin/equipmentmodel/get`,
      method: 'POST',
      params
    })
  },
  admin_equipmentmodel_getEquipmentType () {
    return request({
      url: `${admin}/admin/equipmentmodel/getEquipmentType`,
      method: 'POST'
    })
  },
  admin_equipmentmodel_getList (params) {
    return request({
      url: `${admin}/admin/equipmentmodel/getList`,
      method: 'POST',
      params
    })
  },
  admin_equipmentmodel_getPageList (params) {
    return request({
      url: `${admin}/admin/equipmentmodel/getPageList`,
      method: 'POST',
      params
    })
  },
  admin_equipmentmodel_update (data) {
    return request({
      url: `${admin}/admin/equipmentmodel/update`,
      method: 'POST',
      data
    })
  },
  // 获取表记型号分页列表
  admin_metermodel_getPageList (data) {
    return request({
      url: `${admin}/admin/metermodel/getPageList`,
      method: 'POST',
      data
    })
  },

  // 新增表计型号
  admin_metermodell_add (data) {
    return request({
      url: `${admin}/admin/metermodel/add`,
      method: 'POST',
      data
    })
  },

  // 获取表记型号分页列表
  admin_metermodel_getList (data) {
    return request({
      url: `${admin}/admin/metermodel/getList`,
      method: 'POST',
      data
    })
  },

  // 删除表计型号
  admin_metermodell_delete (data) {
    return request({
      url: `${admin}/admin/metermodel/delete`,
      method: 'POST',
      data
    })
  },

  // 获取表计型号
  admin_metermodell_get (params) {
    return request({
      url: `${admin}/admin/metermodel/get`,
      method: 'POST',
      params
    })
  },

  // 更新表计型号
  admin_metermodell_update (data) {
    return request({
      url: `${admin}/admin/metermodel/update`,
      method: 'POST',
      data
    })
  },

  // 表记型号相关枚举
  admin_metermodel_getEquipmentType () {
    return request({
      url: `${admin}/admin/metermodel/getEquipmentType`,
      method: 'POST'
    })
  }
})
